function main(params) {
    debugger
    let appointmentDate = this.$$("query_field_wrapper_35mw06");
    let self = this;

    appointmentDate.getCurrentValue().then(res => {
        console.log(res)
        getStallAppointmentTotal(5, res[0], res[1]).then(res => {
            console.log(res);
            self.$$("text_input_a6hx7l").cValue = res.appointment_days;
            self.$$("text_input_hqdy2z").cValue = res.holder_count;

        })
    });

}
// function getStallAppointmentTotal(stallId, appointmentStart, appointmentEnd) {
//     return new Promise((resolve, reject) => {
//         const params = [{
//             name: "endTime",
//             valueContent: appointmentEnd
//         }, {
//             name: "stallId",
//             valueContent: stallId
//         }, {
//             name: "starTime",
//             valueContent: appointmentStart
//         }];
//         api.DATA_SOURCE_EXECUTE("ds_mod:76a41b48-71dc-4e5a-9235-4531aba1a022", "ddcat", params, [], "").then(res => {
//             console.log(res);
//             resolve(res.result[0]);
//         });
//     });
// }
